package com.zyf.controller;


import com.zyf.pojo.Employee;
/*import com.zyf.service.EmployeeService;*/
import com.zyf.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class EmployeeController {

    @Autowired
    private EmployeeService employeeService;
    /*处理加载医生下拉列表框列表请求*/
    @CrossOrigin
    @GetMapping("/initEmployee")
    public List<Employee> initEmployee(){
        List<Employee> list = employeeService.list();
        return list;
    }
}
